package tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import users.User;

/**
 * Junit test for the AbstractRole class. 
 * @author Lun-Wei Chang
 * @version 3/19/2014
 */
public abstract class AbstractRoleTest {
  
  /** The ID number of the conference that this role is associated with. */
  private long my_conference_id;
  
  /** The user that this role is associated with. */
  private User my_user;

  /** 
   * Constructs a new role for a AbstractRole to hold.
   * @throws Exception throws an exception if constructions failed. 
   */
  @Before
  public void setUp() throws Exception {
    my_user = new User("David", "Chang", "aspirine539@gmail.com");
    my_conference_id = 0;
    
  }

  /** Tests the getConferenceID Method. */
  @Test 
  public void getConferenceID() {
    assertNotNull("Empth conference ID.", my_conference_id);
  }
  
  /** Tests the getUser Method. */
  @Test 
  public void getUser() {
    assertNotNull("No role!", my_user.getRoles());
  }
  
  /** Tests the getID Method. */
  @Test 
  public void getID() {
    assertNotNull("Empty ID!", my_user.getID());
  }
  
}
